Release 10.1A: OpenEdge Development:
Debugging and Troubleshooting
Collecting r-code usage statistics
When you use statistics startup parameters, Progress writes statistics at the end of the OpenEdge session. You can use the
SHOW-STATSstatement in concert with the startup parameters to write statistics at specific times during execution. The statistics collected with theSHOW-STATSstatement do not include the report of all startup parameters and their values that you get with the Statistics (-y) startup parameter.Statistics-gathering mechanisms include these various startup parameters:
- Statistics (
-y) — Use this startup parameter to collect procedure access and usage statistics throughout the OpenEdge session. This parameter also sends a report of all startup parameters and their values to the output file.- Statistics with CTRL-C (
-yc) — When you use this startup parameter, press CTRL-C rather than using theSHOW-STATSstatement to control when to collect statistics during execution.- Segment Statistics (
-yd) — Use this startup parameter to write segment statistics, such as the number of segments and their total size, to the output file.- Statistics with Cross-reference (
-yx) — Use this startup parameter to collect procedure call statistics.Example 7–4 shows
-ystartup parameter statistics generated on execution of execlog.p. (See Example 7–3 for sample code ofexeclog.p.)
Note: The database statistics appear because the startup parameter connects to a database (
-db sports , -1).Example 7–5 shows
-ydr-code segment statistics generated on execution of execlog.p. ( (See Example 7–3 for sample code ofexeclog.p.)
Example 7–6 shows
-yxstatistics generated on execution of execlog.p. (See Example 7–3 for sample code ofexeclog.p.)
For detailed information on statistics startup parameters, see OpenEdge Deployment: Startup Command and Parameter Reference . For a description of the
SHOW-STATSstatement, see OpenEdge Development: Progress 4GL Reference .
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |